<!-- forgetcode 页面内容 -->
<section class="forgetcode col-xs-12" ng-controller="forgetcodeCtrl">
    <div class="container">
        <div class="row">
            <div class="col-sm-offset-3 col-md-6 col-sm-6 col-xs-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="row">
                            <div class="col-sm-offset-1 col-md-4 col-sm-4 col-xs-5">重置密码</div>
                            <div class="col-md-7 col-sm-7 col-xs-7 text-right" style="padding-left: 0;">
                                <button class='abtn' ng-class="{'active': reset.type == 'tel' }" ng-click="reset.type = 'tel'">通过手机</button>
                                <span class="dividing-line"></span>
                                <button class='abtn' ng-class="{'active': reset.type == 'email' }" ng-click="reset.type = 'email'">通过邮箱</button>
                            </div>
                        </div>
                    </div>
                    <div class="panel-body" ng-show="reset.type == 'tel'">
                        <form name="resetForm" role="form" novalidate>
                            <div class="form-group-phone">
                                <!-- <label for="resettel" class="col-sm-3 col-xs-5 control-label padding-reset" style="padding-right: 0px;">手机</label> -->
                                <input type="tel" class="form-control" ng-model="reset.tel" id="resettel" placeholder="请输入手机号" required>
                                <button type="button" class="btn btn-link btn-get-code" ng-disabled="isDisplayTime" ng-click="sendTel(reset.tel);" ng-bind="isDisplayTime ? count_down_time + '秒后发送': '获取验证码'"></button>
                            </div>
                            <div class="form-group-phone">
                                <!-- <label for="resetcode" class="col-sm-3 col-xs-3 control-label padding-reset" style="padding-right: 0px;">验证码</label> -->
                                <input type="tel" class="form-control" ng-model="reset.code" id="resetcode" placeholder="请输入验证码" required>
                            </div>
                            <div class="button-form-group-phone">
                                <button type="submit" class="btn btn-default" ng-disabled="resetForm.$invalid" ng-click="valideCode(reset);">立即重置</button>
                            </div>
                        </form>
                    </div>
                    <div class="panel-body" ng-show="reset.type == 'email'" ng-init="isresetemail = true">
                        <form role="form" ng-show="isresetemail" novalidate>
                            <div class="form-group-email">
                                <!-- <label for="resetemail" class="col-sm-2 col-xs-2 col control-label" style="padding-right: 0px;">邮箱</label> -->
                                <input type="email" class="form-control" ng-model="reset.email" id="resetemail" placeholder="请输入邮箱">
                            </div>
                            <div class="button-form-group">
                                <button type="submit" class="btn btn-default" ng-click="isresetemail = false;sendEmail(reset.email);">立即重置</button>
                            </div>
                        </form>
                        <div class="tip-info" ng-show="!isresetemail">
                            <h4>
                        查看您的电子邮箱<span class="email">{{ reset.email }}</span>
                      </h4>
                            <p>我们刚刚向您发送了让您重置密码的电子邮件。</p>
                            <p>如果电子邮件没有在几分钟内出现，请检查您的垃圾邮件。</p>
                            <p>如果有任何问题，给我们发电子邮件，我们会帮助您解决问题！</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
